﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Elements
{
    public partial class threshDialog : Form
    {
        private int nX;
        private int nY;
        public threshDialog()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            nX = Convert.ToInt32(comboBox1.SelectedItem);
            nY = Convert.ToInt32(comboBox2.SelectedItem);
            DialogResult = DialogResult.OK;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }

        public int getNx()
        {
            return nX;
        }

        public int getNy()
        {
            return nY;
        }
    }
}
